package com.duruikang.LeaveAPI.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 登录页面的form
 *
 * @author Drik
 * @date 2021-08-09 17:26
 */

@Data
public class LoginForm {
    /**
     * 用户名
     */
    @NotBlank
    @Length(min=10,max=10)
    private String userName;
    /**
     * 密码
     */
    @NotBlank
    @Length(min=32,max = 32)
    private String password;
}
